﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainDriver.DomainModeling.DomainObjects;

namespace DomainDriver.DomainModeling.Events
{
    public class RemoveDomainObjectEventArgs<KEY, KEYED_DOMAIN_OBJECT> : EventArgs
        where KEYED_DOMAIN_OBJECT : IKeyedDomainObject<KEY, KEYED_DOMAIN_OBJECT>
    {
        private KEYED_DOMAIN_OBJECT m_ObjectToRemove;

        public RemoveDomainObjectEventArgs(KEYED_DOMAIN_OBJECT objectToRemove)
            : base()
        {
            m_ObjectToRemove = objectToRemove;
        }

        public KEYED_DOMAIN_OBJECT ObjectToRemove
        {
            get { return m_ObjectToRemove; }
        }
    }
}